package com.phone.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.phone.dao.UserDao;
import com.phone.entity.Admin;
import com.phone.entity.Store;
import com.phone.entity.User;
import com.phone.service.UserService;

@Service
@Transactional
public class UserServiceimpl implements UserService {
	@Autowired
	private UserDao userDaoImpl;
	@Override
	public void saveuser(User user) {
		userDaoImpl.saveuser(user);	
	}
	@Override
	public void savestore(Store store) {
		userDaoImpl.savestore(store);
		
	}
	@Override
	public User seleu(String username) {
		return userDaoImpl.seleu(username);
	}
	@Override
	public Admin selea(String username) {
		return userDaoImpl.selea(username);
	}
	@Override
	public Store seles(String username) {
		return userDaoImpl.seles(username);
	}
	@Override
	public User seleuser(String username, String password) {
		return userDaoImpl.seleuser(username, password);
	}
	@Override
	public Admin seleadmin(String username, String password) {
		return userDaoImpl.seleadmin(username, password);
	}
	@Override
	public Store selestore(String username, String password) {
		return userDaoImpl.selestore(username, password);
	}
	@Override
	public boolean upuser(User user) {
		return userDaoImpl.upuser(user);
	}
}
